package cn.com.KnowNews.dao;

import cn.com.KnowNews.entity.News;

import java.util.List;

public interface INewsDao {
    public List<News> showAllNews() throws Exception;
    public boolean addNew(News news) throws Exception;
    public int delNew(int id) throws Exception;
    public int UpDateNews(News news) throws  Exception;
    public News showNews(int id) throws Exception;
    public  List<News> selectByCate (String cate) throws  Exception;
}
